<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="${_ctx}">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="js/canvas-particle.js"></script>
	<script type="text/javascript">
		window.onload = function() {
		    //配置
		    var config = {
		        vx: 4,	//小球x轴速度,正为右，负为左
		        vy: 4,	//小球y轴速度
		        height: 2,	//小球高宽，其实为正方形，所以不宜太大
		        width: 2,
		        count: 200,		//点个数
		        color: "121, 162, 185", 	//点颜色
		        stroke: "130,255,255", 		//线条颜色
		        dist: 6000, 	//点吸附距离
		        e_dist: 20000, 	//鼠标吸附加速距离
		        max_conn: 10 	//点到点最大连接数
		    }
		    //调用
		    CanvasParticle(config);
		}
	</script>
	<style>
		body{
			background-color: #2D2D2D
		}
		#loginbox{
			width: 350px;
			position: absolute;
			left: 38%;
			top: 10%;
			background-color: rgba(0,0,0,0);
		}
		#loginbox h2{
			color: #fff;
			text-align: center;
			font-size: 30px;
		}
		#loginbox div{
			text-align: center;
			height: 46px;
			margin-bottom: 25px;
		}
		#loginbox div span{
			position: absolute;
			left: 0px;
			display: inline-block;
			width: 47px;
			height: 41px;
			background-color: #fff;
		}		
		#loginbox div span img{
			width:24px;
			height: 24px;
		}
		#loginbox div input{
			height: 39px;
			font-size: 14px;
			width: 300px;
			padding-left:10px;
			border:none;
		}
		#loginbox div #yzmtext{
			width: 300px;
		}
		#loginbox div .dl{
			background-color: darkgreen;
			color: white;
			width: 350px;
			border: 1px solid darkgreen;
		}
		.zuo{
			position: absolute;
			left: 47px;
		}
		#loginbox span img{
			position: relative;
			top: 5px;
		}
		input:focus{
			outline: none;
		}
		.yztanceng{
			background-color: #fff;
			padding:17px 16px;
			position: fixed;
			top:100%;
			left:44.2%;
			border-radius:4px;
			color:#a31515;
			display: block;
		}
		.center{
			width:240px;
			margin:0px auto;
			color:#ddd;
			font-size:12px;
		}
	</style>
	<script type="text/javascript" src="js/jquery-2.2.3.min.js"></script>
	<script type="text/javascript">
		$(function(){
			var login="${login}";
			if(login==1){
				$(".yztanceng").text("提示：账号错误！！！");
				$(".yztanceng").animate({
					top:"70%"
				},500)
				$("#zh").css("border-left","1px solid red");
			}else{
				$("#zh").css("border-left","1px solid #ddd")
			}
			if(login==-1){
				$(".yztanceng").text("提示：密码错误！！！");
				$(".yztanceng").animate({
					top:"70%"
				},500)
				$("#pwd").css("border-left","1px solid red");
			}else{
				$("#pwd").css("border-left","1px solid #ddd")
			}
		})
	</script>
</head>
<body>
	<div class="yztanceng">
		提示：账号错误！！！
	</div>
	<!-- 背景div -->
	<div id="mydiv" style="height:600px;"></div>
	<div id="loginbox">
		<form action="htlogin?v=login" method="post">
			<div><h2>海信后台管理</h2></div>
			<div>
				<span><img src="imgs/htimgs/htzh.png"></span>
				<input value="admin" type="text" placeholder="用户名" id="zh" name="zh" class="zuo" />
			</div>
			<div>
				<span><img src="imgs/htimgs/htpwd.png"></span>
				<input value="654321" type="password" placeholder="密码" id="pwd" name="pwd" class="zuo" />
			</div>
			
			<div><input type="submit" class="dl" value="登陆" /></div>
		</form>
		<div class="center">版权所有：中科韬睿TR1803廖文波组</div>
	</div>
</body>
</html>